import request from "@/utils/request";
//排课列表
export const GetAlreadyScheduleDate = (data) => {
  return request({
    url: "api/Schedule/GetAlreadyScheduleDate",
    method: "post",
    data,
  });
};

//添加或者修改
export const AddOrEditSchedule = (data) => {
  return request({
    url: "api/Schedule/AddOrEditSchedule",
    method: "post",
    data,
  });
};

//删除
export const DelSchedule = (data) => {
  return request({
    url: "api/Schedule/DelSchedule",
    method: "post",
    data,
  });
};
//详情
export const GetScheduleDateDetail = (data) => {
  return request({
    url: "api/Schedule/GetScheduleDateDetail",
    method: "post",
    data,
  });
};

//详情
export const GetScheduleIDDetail = (data) => {
  return request({
    url: "api/Schedule/GetScheduleIDDetail",
    method: "post",
    data,
  });
};

//检查冲突
export const GetScheduleConflict = (data) => {
  return request({
    url: "api/Schedule/GetScheduleConflict",
    method: "post",
    upload: true,
    data,
  });
};
